<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String filePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+"/file/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/xadmin.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/font.css">
<link rel="stylesheet" href="<%=basePath%>css/xadmin.css">
<script src="<%=basePath%>lib/layui/layui.js" charset="utf-8"></script>
<script src="<%=basePath%>lib/layui/css/layui.css" charset="utf-8"></script>
<script src="<%=basePath%>js/pc/admin/updateCateGory.js" charset="utf-8"></script>
<style type="text/css">
.layui-table-fixed-r td {
	height: 58px !important;
}

#LAY-user-manage img {
	max-width: 100px;
	min-height: 150px;
}

#LAY-user-manage cassas-cell {
	height: auto;
	line-height: 28px;
}
</style>
</head>
<body class="layui-anim layui-anim-up">
	<div class="x-nav">
		<span class="layui-breadcrumb"> <a id="classtype2">大类修改</a> <a>
				<cite>修改</cite>
		</a>
		</span> <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			onclick="location.reload()" title="刷新"> <i
			class="layui-icon layui-icon-refresh" style="line-height: 35px;"></i></a>
	</div>

	<div class="layui-container">
		<div class="layui-row layui-col-space10" style="padding-top: 15px">
			<div class="layui-col-md5">

				<form class="layui-form" action="" id="data-from">
				<input name="cId" type="hidden" value="<%=request.getAttribute("id")%>">
					<div class="layui-form-item">
						<label class="layui-form-label">名称</label>
						<div class="layui-input-block">
							<input type="text" name="names"
								value="<%=request.getAttribute("names")%>" required
								lay-verify="required" placeholder="请输入标题" autocomplete="off"
								class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">图片</label>
						<button type="button" class="layui-btn" id="test1">
							<i class="layui-icon">&#xe67c;</i>上传图片
						</button>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">预览</label>
						<img id="demo1" src="<%=filePath%><%=request.getAttribute("photo")%>" width="100" height="100">
					</div>
					<input name="fileupload" type="hidden" value="<%=request.getAttribute("photo")%>">
					<input name="type"
						type="hidden" value="1">
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn layui-btn-normal" lay-submit
								lay-filter="formDemo">立即修改</button>
						</div>
					</div>
				</form>

			</div>
		</div>
	</div>
</body>
</html>